package user

import (
	"context"
	"gitee.com/zhangyu520cw/basic-go/webook/internal/domain"
	"github.com/gin-gonic/gin"
)

type UserService interface {
	SignUp(ctx *gin.Context, u domain.User) error
	Login(ctx context.Context, email, password string) (domain.User, error)
	Edit(ctx context.Context, user domain.User, uid int64) (domain.User, error)
	UpdateNonSensitiveInfo(ctx *gin.Context, user domain.User) error
	FindById(ctx *gin.Context, uid int64) (domain.User, error)
}
